package com.woniu.service.impl;

import com.woniu.dao.BusinessMapper;
import com.woniu.dao.BusinessdtoMapper;
import com.woniu.dao.PropertyPaydtoMapper;
import com.woniu.pojo.Business;
import com.woniu.pojo.Businessdto;
import com.woniu.pojo.Propertypaydto;
import com.woniu.service.BussinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BussinessServiceimpl implements BussinessService {

    @Autowired
     private BusinessdtoMapper businessdtoMapper;

    @Autowired
    private PropertyPaydtoMapper propertyPaydtoMapper;

    @Override
    public List<Businessdto> selectBusinessByUserId(Integer userId) {
       return businessdtoMapper.selectBussinessByUserId(userId);
    }

    @Override
    public List<Propertypaydto> selectServiceByShopId(Integer shopId){
        return propertyPaydtoMapper.selectByShopId(shopId);
    }


}
